import random
stu_name=['Alice', 'Bob', 'Candy', 'David','Ellen','Zero','phoebe','Gen']
groups=[[],[],[]]
for name in stu_name:
    index=random.randint(0,2)
    groups[index].append(name)
print(groups)
print("每个小组的成员有：".center(30,"="))
i=1
for group in groups:
    print("第%d个小组的成员%d有："%(i,len(group)))
    i+=1
    for name in group:
        print("%s"%name,end=" ")
    print()